package com.vectorimage.entity;

import java.util.List;

/**
 * 图片信息解析接口
 * @author Administrator
 *
 */
public interface ReadFaces {
	/**
	 * 设置图像路径
	 * @param path
	 */
	public void setImagePath(String path);
	
	/**
	 * 获取图像路径
	 * @return
	 */
	public String getImagePath();
	
	/**
	 * 获取图像RGB值
	 * @return
	 * @throws Throwable
	 */
	public List<RGB> getRGB() throws Throwable;
	
	/**
	 * 获取图像灰度值
	 * @return
	 * @throws Throwable
	 */
	public List<Float> getGrey() throws Throwable;
	
	/**
	 * 获取图像宽度
	 * @return
	 * @throws Throwable
	 */
	public int getWidth() throws Throwable;
	
	/**
	 * 获取图像高度
	 * @return
	 * @throws Throwable
	 */
	public int getHeight() throws Throwable;
	
	/**
	 * 核心服务方法
	 * @return 返回灰度值
	 * @throws Throwable
	 */
	public List<Float> service() throws Throwable;
	
	/**
	 * 获取所有处理后的数据
	 * @return
	 * @throws Throwable
	 */
	public Face getFace() throws Throwable;
}
